<template>
  <div id="app-nav">
    <van-nav-bar :title="$route.meta.title" left-text="返回" left-arrow @click-left="onClickLeft" />
    <router-view />
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    onClickLeft() {
      window.history.go(-1); //返回上一层
    },
    onClickRight() {
      this.backclick();
    }
  }
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
</style>